# -*- coding: utf-8 -*
import time
import littler.little_r_utils.little_r_reader as llt


def cron_print_time(signum):
    ISOTIMEFORMAT = '%Y-%m-%d %X'
    print time.strftime(ISOTIMEFORMAT, time.localtime())
    llt.little_r_add_data()


def cron_print_hello(signum):
    print "hello"


jobs = [  # {"name": cron_print_time,
    # "time": [60, -1, -1, -1, -1],  # minute, hour, day, month, weekday, "-1" means "all"，此例为每个周一的17：00
    # },
    {"name": cron_print_time,
     "time": [3600],  # 每隔2秒
     }
        ]
